from efficient_apriori import apriori
trans = [('eggs','bacon','soup'),
         ('eggs','bacon','apple'),
         ('soup','bacon','banana')]

itemsets,rules =apriori(trans,min_support=0.5,min_confidence=1)
print(rules)
print(itemsets)